<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/include/head"> 
</head>
<body>
	<div style="padding:10px;">
		<form id="formBox">
		<table>
			<input type="hidden" name="id" th:value="${role.id}" />
			<tr>
				<td>名称：</td><td><input name="roleName" class="easyui-textbox" style="height: 21px;width:180px" th:value="${role.roleName}" /></td>
			</tr>
			<tr>
				<td>描述：</td><td><input name="roleDesc" class="easyui-textbox" style="height: 21px;width:180px" th:value="${role.roleDesc}" /></td>
			</tr>
			<tr>
				<td>权限类型：</td>
				<td>
					<select id="powerType"  name="powerType" class="easyui-combobox" style="height: 21px;width:180px" >
	<!-- 					<option value="admin"       th:selected="${role.powerType eq 'admin'}">管理员角色</option>
						<option value="user" 	    th:selected="${role.powerType eq 'user'}">用户角色</option>
						<option value="department" 	th:selected="${role.powerType eq 'department'}">部门角色</option>
						<option value="default" 	th:selected="${role.powerType eq 'default'}">默认持有角色</option> -->
						<option th:each="category:${roleType}" th:value="${category.key}" th:text="${category.value}" th:selected="${role.powerType eq category.key}" >菜单名称</option>
					</select>
				</td>
			</tr>
			<!-- <tr>
				<td>所属公司：</td>
				<td>
					<select id="companyId"  name="companyId" class="easyui-combobox" style="height: 21px;width:180px" >
						<option th:each="category:${companyList}" th:value="${category.id}" th:text="${category.companyName}" th:selected="${role.company.id eq category.id}" ></option>
					</select>
				</td>
			</tr> -->
			<tr>
				<td colspan="2" style="text-align: center;">
					<a href="javascript:saveOrUpdateRole('../role/saveOrUpdateRole')" class="easyui-linkbutton" iconCls="icon-add" >确定</a>
					<a href="javascript:$('#dd').dialog('close');" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
				</td>
			</tr>
		</table>
		</form>
	</div>
</body>
</html>